<template>
  <div>
    <!-- loding -->
    <div class="black_overlay" v-show="loadingShow"></div>
    <div class="white_content" v-show="loadingShow">
      <div class="loadImg">
        <img src="./loading.gif" alt />
      </div>
    </div>
  </div>
</template>
<script>
export default {
  props:{
    loadingShow:{
      type: Boolean,
      default: false,
    }
  },
  data() {
    return {
     
    };
  },
  mounted() {
    
  },
};
</script>
<style scoped>
.black_overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: black;
  z-index: 3;
  -moz-opacity: 0.15;
  opacity: 0.15;
}
.white_content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 999;
  margin: 0;
  padding: 0;
  overflow: hidden;
  width: 48px;
  height: 43px;
  border-radius: 4px;
  box-sizing: border-box;
}
.loadImg {
  background-color: #fff;
  width: 100%;
  height: 100%;
  display: block;
  vertical-align: top;
}
.loadImg img {
  width: 100%;
  height: 100%;
  display: block;
  vertical-align: top;
}
</style>